package com.lzy.huijinjiazu.mvp.ui.activity;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;

import com.gyf.barlibrary.ImmersionBar;
import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.widget.autolayout.AutoToolbar;
import com.lzy.huijinjiazu.R;
import com.lzy.huijinjiazu.di.component.DaggerJoinPaymentComponent;
import com.lzy.huijinjiazu.di.module.JoinPaymentModule;
import com.lzy.huijinjiazu.mvp.contract.JoinPaymentContract;
import com.lzy.huijinjiazu.mvp.presenter.JoinPaymentPresenter;

import butterknife.BindView;
import butterknife.ButterKnife;


public class JoinPaymentActivity extends BaseActivity<JoinPaymentPresenter> implements JoinPaymentContract.View {


    @BindView(R.id.toolbar)
    Toolbar mToolbar;

    @Override
    public void setupActivityComponent(AppComponent appComponent) {
        DaggerJoinPaymentComponent //如找不到该类,请编译一下项目
                .builder()
                .appComponent(appComponent)
                .joinPaymentModule(new JoinPaymentModule(this))
                .build()
                .inject(this);
    }

    @Override
    public int initView(Bundle savedInstanceState) {
        return R.layout.activity_join_payment; //如果你不需要框架帮你设置 setContentView(id) 需要自行设置,请返回 0
    }

    @Override
    public void initData(Bundle savedInstanceState) {
        mToolbar.getBackground().setAlpha(0);
    }

    @Override
    protected void initImmersionBar() {
        super.initImmersionBar();
        mImmersionBar.setTitleBarMarginTop(this, mToolbar);
    }
}
